package cn.zt.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import lombok.Data;

/**
 * 理财产品用户中间表
 * @TableName t_user_financial
 */
@TableName(value ="t_user_financial")
@Data
public class TUserFinancial implements Serializable {
    /**
     * 编号
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 客户id
     */
    private Integer userId;

    /**
     * 理财产品id
     */
    private Integer financialId;

    /**
     * 持有理财产品的份数
     */
    private Long number;

    /**
     * 理财产品订单逻辑删除
     * 1存在
     * 2删除
     */
    @TableLogic(value = "1" , delval = "2")
    private Integer deleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    //姓名
    @TableField(exist = false)
    private String nickname ;

    //支付密码
    @TableField(exist = false)
    private String possWord ;

    //支付金额
    @TableField(exist = false)
    private Integer money;

    //卡号
    @TableField(exist = false)
    private String bankCard;


    //产品
    @TableField(exist = false)
    private TProductDetails productDetails;

}